package com.piper.demo.aop;

import com.piper.spring.aop.AopConfig;

import java.lang.reflect.Method;

public class NameAop extends AopConfig {

    @Override
    public int order() {
        return 0;
    }

    @Override
    public String pointCut() {
        return "com.piper.demo.service.impl * *";
    }

    @Override
    public void before(Object o, Method m, Object[] objects) {
        System.out.println("古之恶来 典韦");
    }

    @Override
    public void after(Object o, Method m, Object[] objects) {
        System.out.println("虎侯 许褚");
    }
}
